package com.ucar.umock.client.config;

import java.util.Collection;

public interface UMockMethodConfigOperate {

    /**
     * get Mock 数据
     * @param key
     * @return
     */
    public UMockMethodConfigBean getMockMethodConfig(String key);

    /**
     * put Mock 数据
     * @param mockMeta
     */
    public void putMockMethodConfig(UMockMethodConfigBean mockMeta);


    /**
     * 更新 mock 开关
     * @param key
     * @param mockSwitch
     */
    public void updateMockSwitch(String key,boolean mockSwitch);


    /**
     * 根据class Name 修改开关
     * @param className
     * @param mockSwitch
     */
    public void updateMockSwitchByClazz(String className,boolean mockSwitch);

    /**
     * 获取所有的Mock 配置
     * @return
     */
    public Collection<UMockMethodConfigBean> getAllUMockMethodConfig();



}
